import logging
import os
import sys

from gymnasium.envs.registration import register

os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "yes please"

# Init and setup the root logger
logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s %(levelname)s %(module)s %(funcName)s: "%(message)s"',
    datefmt="%d-%m-%y %H:%M:%S",
    handlers=[logging.StreamHandler(sys.stdout)],
)

_AVAILABLE_ENVS = {}

for env_id, val in _AVAILABLE_ENVS.items():
    register(id=env_id, entry_point=val.get("entry_point"))
